package com.lmt.service;

import com.lmt.base.ResultData;
import com.lmt.entity.CollectionFolder;
import com.lmt.entity.search.CollectionFolderSearch;

import java.util.List;

/**
 * Date 2018/07/17
 *
 * @author MT-Lin
 */
public interface CollectionFolderService {

	/**
	 * 新增收藏夹
	 * @param collectionFolder 收藏夹
	 * @return ResultData
	 */
	ResultData save(CollectionFolder collectionFolder);

	/**
	 * 搜索收藏夹
	 * @param collectionFolderSearch 搜索条件
	 * @return ResultData
	 */
	ResultData search(CollectionFolderSearch collectionFolderSearch);

	/**
	 * 获取所属收藏夹选项
	 * @return ResultData
	 */
	ResultData getParentTree();

	/**
	 * 批量删除收藏夹
	 * @param collectionFolders 要删除的收藏夹
	 * @return ResultData
	 */
	ResultData delete(List<CollectionFolder> collectionFolders);

	/**
	 * 修改收藏夹
	 * @param collectionFolder 修改的收藏夹
	 * @return ResultData
	 */
	ResultData update(CollectionFolder collectionFolder);
}
